<?php

// step 1: get user info
$username = $_POST['username'];

// step 2: make a session variable with the username and voila! we are done!
session_start();	// This connects to the existing session
session_register ("username");

if ($username != "") {
	$HTTP_SESSION_VARS ["username"] = $username;	// Set name = form variable $name
} else {
	$HTTP_SESSION_VARS["username"] = 'temp';
}


header( 'Location: index.html' ) ;

?>